package com.byq.mm.smartlib.cluster.activity.client;

import java.util.HashMap;
import java.util.Map;

import android.app.Activity;

import com.byq.mm.smartlib.activity.DeviceActivity;
import com.byq.mm.smartlib.activity.SubDevicesActivity;

public class DeviceActivityManager {
	static Map<String,  Class<? extends Activity>> activitys = new HashMap<String, Class<? extends Activity>>();
	
	static{
		//activitys.put("automobile", AutomobileRemoteActivity.class);
		
	}
	static public Class<? extends Activity> getSubdeviceActivity(String clusterId){
		 Class<? extends Activity> rst = activitys.get(clusterId);
		 if(rst == null)
			 return SubDevicesActivity.class;
		 return rst;
	}
	static public Class<? extends Activity> getDeviceActivity(String clusterId){
		 Class<? extends Activity> rst = activitys.get(clusterId);
		 if(rst == null)
			 return DeviceActivity.class;
		 return rst;
	}
}
